# pq = PriorityQueue() 定义队列
# pq.put([priority,value]) 放入队列
# pq.get() 取出队首

from queue import *
pq = PriorityQueue()
pq.put(1)
pq.put(16)
pq.put(5)
while not pq.empty():
    print(pq.get(), end=' ')